package com.codeman.business.book.mapper;

import com.codeman.business.book.domain.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 小说Mapper接口
 * 
 * @author codeman
 * @date 2021-03-19
 */
public interface BookMapper extends BaseMapper<Book> {
    @Select("update book set visit_count = visit_count + #{coubt}  where id = #{id}")
    void addVisitCount(@Param("id") long id,@Param("count")long count);

}
